export const dev_host = 'http://150.158.40.124:9000'; // 开发环境域名
// export const dev_host = 'http://192.168.3.14:9000'; // 本地环境域名
// export const dev_host = 'http://150.158.135.136:9001'; // 开发环境域名
export const mock_host = 'http://150.158.135.136:9000'; // MOCK环境域名
export const product_host = 'http://150.158.135.136:9000'; // 生产环境域名

export const IS_DEV = 1; // 0:生产环境 1:开发环境 2:mock环境

const host = IS_DEV == 2 ? mock_host : IS_DEV == 1 ? dev_host : product_host; // 项目中接口地址host
export const SHAREURL = host + '/h5/#/'; // 分享的H5地址

export const BASE_URL = `${host}`; // 基础路径
export const API_BASE_URL = `${host}`; // 接口请求基础路径
  //图片上传路径
export const UPLOAD_IMAGE_URL = `${host}/system/uploadFile`; // 图片上传接口路径 UploadImage方法依赖此配置
export const READ_FILE_URL = `${host}/system/readFile/`; //文件读取路径
// export const UPLOAD_VIDEO_URL = ``; // 视频上传上传接口路径

export const IMG_BASE_URL = `/static/images/`;
export const LOGIN_PAGE_URL = '/pages/login/index'

const _platform = uni.getSystemInfoSync().platform;
export const SYSTEM_CONFIG = { // 系统配置
  logo: '/static/logo.png',
  appName: '东本四厂',
  appVersion: '1.0.0',
  // #ifdef APP-PLUS
  platform: _platform === 'android' ? 'Android' : 'IOS',
  // #endif
  // #ifdef H5
  platform: 'Web',
  // #endif
}

export const needProductUrl = [

];